<?php
namespace PsiFramework\Applications\DefaultApp\Classes\Model;

import("Classes.Model.Object");

use \PsiFramework\Classes\Model\Object;

/**
 * AlloMedia
 * Portail des professionnels
 *
 * @author Rémi San
 * @version beta
 */

/**
 *
 *
 * @package Model
 */
class Page extends Object
{

    protected /*int*/       $_id ;
    protected /*string*/    $_name ;
    protected /*language*/  $_language ;
    protected /*string*/    $_title ;
    protected /*string*/    $_content ;

    /**
     * Constructeur
     *
     * @param       int              $id             L'identifiant de la page
     * @param       string           $name           Le nom de la page
     * @param       string           $language       La langue de la page
     * @param       string           $title          Le titre de la page
     * @param       string           $content        Le contenu de la page
     */
    public function __construct(
        /*int*/ $id=null,
        /*string*/ $name=null,
        /*string*/ $language=null,
        /*string*/ $title=null,
        /*string*/ $content=null
    )
    {
        $this->_id = $id ;
        $this->_name = $name ;
        $this->_language = $language ;
        $this->_title = $title ;
        $this->_content = $content ;
    }

    public function getId()
    {
        return $this->_id ;
    }

    public function setId($id)
    {
        $this->_id = $id ;
    }

    public function getName()
    {
        return $this->_name ;
    }

    public function setName($name)
    {
        $this->_name = $name ;
    }

    public function getLanguage()
    {
        return $this->_language ;
    }

    public function setLanguage($language)
    {
        $this->_language = $language ;
    }

    public function getTitle()
    {
        return $this->_title ;
    }

    public function setTitle($title)
    {
        $this->_title = $title ;
    }

    public function getContent()
    {
        return $this->_content ;
    }

    public function setContent($content)
    {
        $this->_content = $content ;
    }

    public function toString()
    {
        return $this->_name ;
    }
}
